package com.ld.control.business.sample.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ld.control.business.sample.mapper.SampleDataShowConfigMapper;
import com.ld.control.business.sample.model.SampleDataShowConfigModel;
import com.ld.control.business.sample.service.SampleDataShowConfigService;
import com.ld.control.business.sample.vo.resp.SampleDataShowConfigRespVo;
import com.ld.control.common.vo.GenerateListVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 设备字段配置 服务实现类
 * </p>
 *
 * @author wangfeng
 * @since 2025-10-14
 */
@Service
public class SampleDataShowConfigServiceImpl extends ServiceImpl<SampleDataShowConfigMapper, SampleDataShowConfigModel> implements SampleDataShowConfigService {

    @Autowired
    private SampleDataShowConfigMapper sampleDataShowConfigMapper;

    @Override
    public GenerateListVo<SampleDataShowConfigRespVo> getSampleDataShowTitleList() {
        List<SampleDataShowConfigRespVo> sampleDataShowConfigList = sampleDataShowConfigMapper.selectAllList();
        return new GenerateListVo<>(sampleDataShowConfigList);
    }
}
